﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Recommend_Manage.aspx.cs" Inherits="TimKen.Web.Admin.Recommend.Recommend_Manage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
 <span class="action-span"><a href="Recommend_Add.aspx">
        新建推荐分类</span>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
产品推荐管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

    <div class="list-div">
        <!-- 产品列表 -->
        <asp:GridView ID="grdRecommend" runat="server" AutoGenerateColumns="False" DataKeyNames="RecommendID"
            PageSize="15" AllowSorting="True" CssClass="grid" OnRowCommand="grdBrand_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                      推荐分类
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("CategoryName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                   <asp:TemplateField>
                    <HeaderTemplate>
                      添加日期
                    </HeaderTemplate>
                    <ItemTemplate>
                      <%#Eval("CreateDate")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("DetailInfo")%>'
                            ImageUrl="~/Admin/images/icon_detail.gif" CommandName="EditEvent" CommandArgument='<%#Eval("RecommendID")%>' />
                            
                             <asp:ImageButton ID="btnDelete" runat="server" ToolTip='<%#GetLangString("Delete")%>'
                            CommandName="DeleteEvent" CommandArgument='<%#Eval("RecommendID")%>' ImageUrl="~/Admin/images/icon_drop.gif"
                            OnClientClick="return deleteConfirm()" />
                            
                            
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
